#include <allegro.h>
#include <stdio.h>
#include "object.h"

BITMAP *img;
BITMAP *buffer;

int main() {
	allegro_init();
   
   set_color_depth(24);
   
	set_gfx_mode(GFX_AUTODETECT_WINDOWED, 800, 600, 0, 0);
   
   install_keyboard();
   
   
   buffer = create_bitmap(800, 600);
   
	img = load_bitmap("nota.bmp", NULL);

	object nota(0, 0, 10, img);
   
   nota.draw(buffer);
   
   draw_sprite(screen, buffer, 0, 0);
   
   draw_sprite(screen, img, 100, 100);
   
	printf("x = %d, y = %d, velx = %d\n", nota.x, nota.y, nota.speed_y);
   
   readkey();
	return 0;
}
END_OF_MAIN();

